package me.wpf.DesignMode.cor;

/**
 * Description:
 *
 * @author 王朋飞
 * @create 2019/8/12
 */
public class Boot {
    public static void main(String[] args) {
        Request request = new Request.Builder().setName("张三").setDays(5)
                .setReason("事假").build();
        ChainOfResponsibilityClient client = new ChainOfResponsibilityClient();
        client.addRatifys(new CustomInterceptor());
        Result result = client.execute(request);

        System.out.println("结果=" + result.toString());
    }

}
